// 导入Token合约
const Token = artifacts.require("Token")
// 导入周期性支付合约
const Payment = artifacts.require("Payment")

module.exports = async function(deployer, network, accounts) {
    // 部署Token合约
    await deployer.deploy(Token, 'AAA Token', 'AAA');
    await Token.deployed()

    // 部署周期性支付合约
    await deployer.deploy(Payment);
    await Payment.deployed()
}